<template>
	<!-- 支付成功 -->
	<view class="">
		<tohome />
		<!-- <navbar :navigationBarStyle="navigationBarStyle"></navbar> -->
		<view class="screen" style="height: 100vh; position: relative;" :style="'padding-top:' + vuex_phoneLayout.screenPaddingTop + 'px'">
			<view class="success_wrap">
				<image :src="getImgSrc('/address/img_succeed@2x.png')" style="width: 174rpx;height: 174rpx;" mode="heightFix"></image>
				<view class="success_wrap_text1">
					支付成功
				</view>
				<view class="success_wrap_text2">
					￥
					<text style="font-size: 88rpx;line-height: 1;">{{payPrice}}</text>
				</view>
				<view class="success_wrap_text3">
					杭州耀跃盟享网络科技有限公司
				</view>
				<view class="default-button" @tap="gotoOrderList">
					查看订单
				</view>
			</view>
		
			<view class="screen-bottomFill" style="opacity: 1;" :style="'height:' + vuex_phoneLayout.ipxbottom + 'px;'">
				<!-- 用来填充导航 和 底部的多余 -->
			</view>
		</view>
	</view>
</template>
<script>
	import {checkTel} from '@/common/util.js'
	export default {
		data() {
			return {
				navigationBarStyle: {
					background: 'white',
					color: 'black',
					iconText: '支付成功' //导航栏文字
				},
				payPrice: '',
			};
		},
		onLoad(option) {
			this.payPrice = option.payPrice
		},
		onShow(){
		},
		watch:{
		},
		methods: {
			gotoOrderList(){
				uni.navigateTo({
				    url: '/pages/sys/cuser/orderList'
				});
			},
			gotoMap(){
				uni.navigateTo({
					url: `/subPages/map/map-wx?lat=${this.myAddress.lat}&lon=${this.myAddress.lon}`
				})
			},
		}
	};
</script>
<style lang="scss">
	@import 'index.scss';
	.success_wrap {
		text-align: center;
		padding: 105rpx 0;
		.default-button {
			height: 96rpx;
			line-height: 96rpx;
			width: 66.67%;
			margin: 0 auto;
		}
	}
	.success_wrap_text1 {
		font-size: 34rpx;
		color: #282828;
	}
	.success_wrap_text2 {
		font-size: 46rpx;
		color: #282828;
		margin-top: 88rpx;
		font-weight: 800;
	}
	.success_wrap_text3 {
		font-size: 30rpx;
		color: #4B4B4B;
		margin: 16rpx auto 66rpx;
	}
</style>
